// 节点端口类型
export interface NodePort {
    id: string;
    type: 'input' | 'output';
    label: string;
    dataType: string;
}

// 工作流节点类型
export interface WorkflowNode {
    id: string;
    type: string;
    label: string;
    x: number;
    y: number;
    ports: NodePort[];
    config?: Record<string, any>;
}

// 节点连接类型
export interface NodeConnection {
    id: string;
    sourceNode: string;
    sourcePort: string;
    targetNode: string;
    targetPort: string;
}

// 工作流编辑器配置
export interface WorkflowEditorConfig {
    nodes: WorkflowNode[];
    connections: NodeConnection[];
} 